<?xml version="1.0" encoding="UTF-8"?>
<definitions id="taskAssigneeExample" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
  
  <process id="testProcess" isExecutable="true">

    <startEvent id="theStart" />
    
    <sequenceFlow sourceRef="theStart" targetRef="subprocess" />
  
    <subProcess id="subprocess">
  
      <startEvent id="start"/>
      
      <sequenceFlow id="flow"  sourceRef="start" targetRef="task">
        <extensionElements>
          <camunda:executionListener class="org.camunda.bpm.engine.test.history.DecisionServiceDelegate" event="take" />
        </extensionElements>
      </sequenceFlow>
      
      <userTask id="task" />
  
      <sequenceFlow sourceRef="task" targetRef="end" />
      
      <endEvent id="end" camunda:asyncBefore="true" />
    </subProcess>

  </process>

</definitions>
